package com.system.AttendanceCherkDepartment.service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.system.AttendanceCherkDepartment.entity.Attendance;
import com.system.AttendanceCherkDepartment.entity.AttendanceEvent;

public interface IAttendanceService {

	public void saveOrUpdate(Attendance attendance);
	public void delete(Attendance attendance);
	public Attendance findOne(Long id);
	public List<Attendance> findAll();
	
	//自定义查询，传参
   	public int saveOrUpdate(Long id,
   			AttendanceEvent attendanceEvent,
   			Date time,
			Long totalAbsence,
			Long totalOvertime,
			Long totalLeave,
			Long totalVacation,
			Long totalscore);
	public int deleteAttendances(List<Long> lists);
	
	//自定义分页查询
	public Page<Attendance> findAll(AttendanceEvent attendanceEvent ,Pageable pageable);
	
	public Page<Attendance> findAll(Long empId,Pageable pageable);
	
	public Page<Attendance> findAll(Pageable pageable);
	
	//动态条件查询
	//public Page<Employee> findAll(Specification<Employee> spec, Pageable pageable);
	
	public ArrayList<Attendance> findAllByOwner();
	
	public Attendance findOnebyEmp(Long empId);
	public void save(String attendanceEvent,String userid);
}
